package synchronizedTest;

public class CountTest {
    public static void main(String[] args) {
        Count count = new Count();
        Thread t1 = new Thread(()->{
            for (int i = 0; i < 50000; i++) {
                synchronized (count) {
                    count.add();
                }

            }
        });
    }
}
